package com.ruoyi.project.digital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 用户背景对象 t_user_back
 *
 * @author ruoyi
 * @date 2023-12-03
 */
@TableName("t_user_back")
@Data
public class UserBack extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 0 代表是，1代表不是 */
    @Excel(name = "0 代表是，1代表不是")
    private String isDeafult;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 背景id */
    @Excel(name = "背景id")
    private Long backId;

    /** 商品code */
    @Excel(name = "商品code")
    private String code;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    @TableField(exist = false)
    private String userName;
    
    
    @TableField(exist = false)
    private String backUrl;


    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    public String getIsDeafult() {
        return isDeafult;
    }

    public void setIsDeafult(String isDeafult) {
        this.isDeafult = isDeafult;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getBackId() {
        return backId;
    }

    public void setBackId(Long backId) {
        this.backId = backId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getBackUrl() {
        return backUrl;
    }

    public void setBackUrl(String backUrl) {
        this.backUrl = backUrl;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("isDeafult", getIsDeafult())
            .append("userId", getUserId())
            .append("backId", getBackId())
            .append("code", getCode())
            .append("type", getType())
            .append("id", getId())
            .toString();
    }
}
